{% extends 'base.html' %}
{% block title %}新闻发布{% endblock %}
{% block head %}
<link rel="stylesheet" href="{{ url_for('static',filename='css/reset.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename='css/main.css') }}">
     <script src="{{ url_for('static',filename='jquery/jquery-3.2.1.min.js')}}"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='js/jquery.form.min.js')}}"></script>
        <script src="{{ url_for('static', filename='tinymce/js/tinymce/tinymce.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/tinymce_setup.js') }}"></script>
 <script type="text/javascript" src="{{ url_for('static',filename='js/line.js') }}"></script>　
     <script type="text/javascript" src="{{ url_for('static',filename='js/user_news_release.js') }}"></script>
{% endblock %}
{% block body %}


<div class="inframe_body">
    <form class="release_form">
        <h3 align="center">新闻发布</h3>
        <div class="form-group"><label>新闻标题：</label><input type="text" class="input_txt2" name="title"></div>


        <div class="form-group">
            <label>新闻极性：</label>
            <select class="sel_opt" name="polarity">

                {# 遍历分类数据 #}
{#                {% for category in categories if category.name != "最新"%}#}
{#                    <option value="{{ category.id }}">{{ category.name }}</option>#}
{#                {% endfor %}#}


                <option value="neutral">neutral</option>
                <option value="negative">negative</option>
                <option value="positive">positive</option>
            </select>
        </div>



        <div class="form-group"><label>摘要：</label><textarea class="input_multxt" name="digest"></textarea></div>
        <div class="form-group"><label>上传图片：</label><input type="file" name="index_image" class="input_file"></div>
        <div class="form-group">
            <label>内容：</label>

            <div class="fl">
                <input class="input_area" id="rich_content" name="content" value=" "/></div>
        </div>
        <div class="form-group">
            <input type="submit" value="发 布" class="input_sub input_sub2" style="float:right">
        </div>
        <div class="error_tip2">错误提示</div>
    </form>
    <script>
        $(function(){
            window.parent.fnSetIframeHeight(900);
        })
    </script>
</div>
{% endblock %}